import QtQuick 2.0

import "../../js/util.js" as Util

Rectangle {
    width: m_root_id.width
    height: m_lineValue
    property alias m_text: m_Text_id.text
    property alias m_source: m_Img_id.source

    signal clickSignal

    AText {
        id: m_Text_id
        font.pointSize: 20
        anchors {
            verticalCenter: parent.verticalCenter
            left: parent.left
            leftMargin: Util.leftMargin
        }
    }

    Image {
        id: m_Img_id
        anchors {
            verticalCenter: parent.verticalCenter
            right: parent.right
            rightMargin: Util.rightMargin
        }
        source: "qrc:/images/wo-icon.png"
    }

    MouseArea {
        anchors.fill: parent
        onClicked: clickSignal()
    }
}

